load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "go_default_library",
    srcs = ["options.go"],
    importpath = "github.com/jetstack/cert-manager/cmd/controller/app/options",
    visibility = ["//visibility:public"],
    deps = [
        "//pkg/apis/certmanager:go_default_library",
        "//pkg/controller/acmechallenges:go_default_library",
        "//pkg/controller/acmeorders:go_default_library",
        "//pkg/controller/certificate-shim/gateways:go_default_library",
        "//pkg/controller/certificate-shim/ingresses:go_default_library",
        "//pkg/controller/certificaterequests/acme:go_default_library",
        "//pkg/controller/certificaterequests/approver:go_default_library",
        "//pkg/controller/certificaterequests/ca:go_default_library",
        "//pkg/controller/certificaterequests/selfsigned:go_default_library",
        "//pkg/controller/certificaterequests/vault:go_default_library",
        "//pkg/controller/certificaterequests/venafi:go_default_library",
        "//pkg/controller/certificates/issuing:go_default_library",
        "//pkg/controller/certificates/keymanager:go_default_library",
        "//pkg/controller/certificates/metrics:go_default_library",
        "//pkg/controller/certificates/readiness:go_default_library",
        "//pkg/controller/certificates/requestmanager:go_default_library",
        "//pkg/controller/certificates/revisionmanager:go_default_library",
        "//pkg/controller/certificates/trigger:go_default_library",
        "//pkg/controller/certificatesigningrequests/acme:go_default_library",
        "//pkg/controller/certificatesigningrequests/ca:go_default_library",
        "//pkg/controller/certificatesigningrequests/selfsigned:go_default_library",
        "//pkg/controller/certificatesigningrequests/vault:go_default_library",
        "//pkg/controller/certificatesigningrequests/venafi:go_default_library",
        "//pkg/controller/clusterissuers:go_default_library",
        "//pkg/controller/issuers:go_default_library",
        "//pkg/feature:go_default_library",
        "//pkg/logs:go_default_library",
        "//pkg/util:go_default_library",
        "//pkg/util/feature:go_default_library",
        "@com_github_spf13_pflag//:go_default_library",
        "@io_k8s_apimachinery//pkg/util/sets:go_default_library",
    ],
)

filegroup(
    name = "package-srcs",
    srcs = glob(["**"]),
    tags = ["automanaged"],
    visibility = ["//visibility:private"],
)

filegroup(
    name = "all-srcs",
    srcs = [":package-srcs"],
    tags = ["automanaged"],
    visibility = ["//visibility:public"],
)

go_test(
    name = "go_default_test",
    srcs = ["options_test.go"],
    embed = [":go_default_library"],
    deps = ["@io_k8s_apimachinery//pkg/util/sets:go_default_library"],
)
